/***************************************************************
 * Name:      GUIApp.cpp
 * Purpose:   Code for Application Class
 * Author:    Robotnik Automation (mrodriguez@robotnik.es)
 * Created:   2012-03-02
 * Copyright: Robotnik Automation (http://www.robotnik.eu/)
 * License:
 **************************************************************/

#include "GUIApp.h"

//(*AppHeaders
#include "GUIMain.h"
#include <wx/image.h>
//*)

#include <ros/ros.h>

IMPLEMENT_APP(GUIApp);

bool GUIApp::OnInit()
{
    int argc = 1;
    char *argv[10] = {"listener"};
    ros::init(argc, argv, "listener");

    //(*AppInitialize
    bool wxsOK = true;
    wxInitAllImageHandlers();
    if ( wxsOK )
    {
    	GUIFrame* Frame = new GUIFrame(0);
    	Frame->Show();
    	SetTopWindow(Frame);
    }
    //*)

    return wxsOK;
}
